<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the overall canvas size</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickdraw.setvectorgraphics.html">ImagickDraw::setVectorGraphics</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickdraw.skewx.html">ImagickDraw::skewX</a></div>
 <div class="up"><a href="class.imagickdraw.html">ImagickDraw</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagickdraw.setviewbox" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ImagickDraw::setViewbox</h1>
  <p class="verinfo">(PECL imagick 2.0.0)</p><p class="refpurpose"><span class="refname">ImagickDraw::setViewbox</span> &mdash; <span class="dc-title">Sets the overall canvas size</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagickdraw.setviewbox-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>ImagickDraw::setViewbox</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$x1</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$y1</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$x2</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$y2</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>
  <p class="para">
   Sets the overall canvas size to be recorded with the drawing vector data.
   Usually this will be specified using the same size as the canvas image.
   When the vector data is saved to SVG or MVG formats, the viewbox is use to
   specify the size of the canvas image that a viewer will render the vector
   data on.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagickdraw.setviewbox-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">x1</code></em></dt>

     <dd>

      <p class="para">
       left x coordinate
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">y1</code></em></dt>

     <dd>

      <p class="para">
       left y coordinate
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">x2</code></em></dt>

     <dd>

      <p class="para">
       right x coordinate
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">y2</code></em></dt>

     <dd>

      <p class="para">
       right y coordinate
      </p>
     </dd>

    
   </dl>

  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagickdraw.setviewbox-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagickdraw.setvectorgraphics.html">ImagickDraw::setVectorGraphics</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagickdraw.skewx.html">ImagickDraw::skewX</a></div>
 <div class="up"><a href="class.imagickdraw.html">ImagickDraw</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
